<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>TODO List</title>
	</head>
	<body>
		<div id="example"></div>
		<script src="../js/react.development.js"></script>
		<script src="../js/react-dom.development.js"></script>
		<script src="../js/babel.min.js"></script>
		<script src="../js/prop-types.js"></script>
		<script type="text/babel">
			class LoginForm extends React.Component {
				constructor(props) {
					super(props);
					this.handleSubmit = this.handleSubmit.bind(this);
				}

				handleSubmit(event) {
					event.preventDefault();
				}
				render() {
					return (
						<form action="/test" onSubmit={this.handleSubmit}>
							用户名：
							<input type="text" />
							密码：
							<input type="text" />
							<input type="submit" value="提交" />
						</form>
					);
				}
			}

			ReactDOM.render(<LoginForm />, example);
		</script>
	</body>
</html>
